/**
 * @file _axiom-mobile-detail.scss
 * @description AxiomMobileDetail 移动端详情组件样式
 */
@use '../../../styles/variables' as *;

.axiom-mobile-detail {
  .detail-header {
    display: flex;
    align-items: center;
    padding: var(--axiom-spacing-md, 16px);
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: var(--axiom-z-index-sticky, 10);
    
    .back-button {
      margin-right: var(--axiom-spacing-sm, 12px);
      min-width: auto;
      padding: var(--axiom-spacing-xs, 8px);
    }
    
    .detail-title {
      flex: 1;
      margin: 0;
      font-size: var(--axiom-font-size-lg, 18px);
      font-weight: var(--axiom-font-weight-semibold, 600);
    }
    
    .header-actions {
      display: flex;
      gap: var(--axiom-spacing-xs, 8px);
    }
  }
  
  .detail-content {
    padding: var(--axiom-spacing-md, 16px);
    
    .detail-form {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--axiom-spacing-md, 16px);
      
      .detail-field {
        &.field-span-1 {
          grid-column: span 1;
        }
        
        &.field-span-2 {
          grid-column: span 2;
        }
        
        &.field-group-wrapper {
          grid-column: span 2;
          padding: var(--axiom-spacing-sm, 12px);
          margin-top: var(--axiom-spacing-md, 16px);
          border: 1px solid var(--border-color-light);
          border-radius: var(--axiom-border-radius-large, 8px);
          background-color: var(--bg-color-secondary);
          
          .group-title {
            margin: 0 0 var(--axiom-spacing-sm, 12px) 0;
            font-weight: var(--axiom-font-weight-semibold, 600);
            font-size: var(--axiom-font-size-md, 16px);
            color: var(--text-color);
          }
        }
      }
      
      .detail-form-item {
        .el-form-item__label {
          color: var(--text-color-secondary);
          font-weight: var(--axiom-font-weight-medium, 500);
          line-height: 1.4;
          margin-bottom: var(--axiom-spacing-xs, 8px);
        }
        
        .el-form-item__content {
          line-height: 1.5;
        }
        
        .field-value {
          .field-tags {
            display: flex;
            flex-wrap: wrap;
            gap: var(--axiom-spacing-xxs, 6px);
          }
          
          .field-image {
            max-width: 100%;
            height: auto;
            border-radius: var(--axiom-border-radius-base, 4px);
          }
          
          .field-text {
            word-break: break-word;
          }
        }
      }
    }
    
    .detail-actions {
      margin-top: var(--axiom-spacing-lg, 24px);
      
      .actions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--axiom-spacing-sm, 12px);
        
        .action-button {
          .action-icon {
            margin-right: var(--axiom-spacing-xxs, 6px);
          }
        }
      }
    }
  }
}

@media (max-width: 768px) {
  .axiom-mobile-detail {
    .detail-content {
      padding: var(--axiom-spacing-sm, 12px);
      
      .detail-form {
        grid-template-columns: 1fr;
        gap: var(--axiom-spacing-sm, 12px);
        
        .detail-field {
          &.field-span-1,
          &.field-span-2,
          &.field-group-wrapper {
            grid-column: span 1;
          }
        }
      }
      
      .detail-actions {
        .actions-grid {
          grid-template-columns: 1fr;
        }
      }
    }
  }
} 